#ifndef MESHCONTROLLER_H
#define MESHCONTROLLER_H

#include <QObject>
#include "mainwindow.h"
#include "canvas.h"
#include "bezier.h"

class MeshController : public QObject
{
    Q_OBJECT

    QVector2D ini;
    Bezier bezier;

public:
    explicit MeshController(MainWindow* mw, QObject *parent = 0);

private:
    Canvas * m_canvas;

public slots:
    void draw();
    void leftReleased(QVector2D);
    void leftPressed(QVector2D);

};

#endif // MESHCONTROLLER_H
